package top.infopub.httpclient.cmpt;


import java.util.Map;

import com.google.common.collect.Maps;


/**
 * http ContentType
 * @author Awoke
 * @version 2018年4月27日
 * @see ContentType
 * @since
 */
public class ContentType {
    
    private static Map<String, String> maps = Maps.newHashMap();

    public static String getSuffix(String contentType) {
        if (contentType == null) {
            return "";
        }
        return maps.get(contentType);
    }

    static {
        maps.put("image/tiff", ".tif");
        maps.put("application/x-301", ".301");
        maps.put("application/x-906", ".906");
        maps.put("application/x-a11", ".a11");
        maps.put("application/postscript", ".ai");
        maps.put("audio/aiff", ".aifc");
        maps.put("application/x-anv", ".anv");
        maps.put("video/x-ms-asf", ".asf");
        maps.put("video/x-ms-asf", ".asx");
        maps.put("video/avi", ".avi");
        maps.put("text/xml", ".biz");
        maps.put("application/x-bot", ".bot");
        maps.put("application/x-c90", ".c90");
        maps.put("application/vnd.ms-pki.seccat", ".cat");
        maps.put("application/x-cdr", ".cdr");
        maps.put("application/x-x509-ca-cert", ".cer");
        maps.put("application/x-cgm", ".cgm");
        maps.put("java/*", ".class");
        maps.put("application/x-cmp", ".cmp");
        maps.put("application/x-cot", ".cot");
        maps.put("application/x-x509-ca-cert", ".crt");
        maps.put("text/css", ".css");
        maps.put("application/x-dbf", ".dbf");
        maps.put("application/x-dbx", ".dbx");
        maps.put("application/x-dcx", ".dcx");
        maps.put("application/x-dgn", ".dgn");
        maps.put("application/x-msdownload", ".dll");
        maps.put("application/msword", ".dot");
        maps.put("text/xml", ".dtd");
        maps.put("application/x-dwf", ".dwf");
        maps.put("application/x-dxb", ".dxb");
        maps.put("application/vnd.adobe.edn", ".edn");
        maps.put("message/rfc822", ".eml");
        maps.put("application/x-epi", ".epi");
        maps.put("application/postscript", ".eps");
        maps.put("application/x-msdownload", ".exe");
        maps.put("application/vnd.fdf", ".fdf");
        maps.put("text/xml", ".fo");
        maps.put("application/x-g4", ".g4");
        maps.put("application/x-", ".");
        maps.put("application/x-gl2", ".gl2");
        maps.put("application/x-hgl", ".hgl");
        maps.put("application/x-hpgl", ".hpg");
        maps.put("application/mac-binhex40", ".hqx");
        maps.put("application/hta", ".hta");
        maps.put("text/html", ".htm");
        maps.put("text/webviewhtml", ".htt");
        maps.put("application/x-icb", ".icb");
        maps.put("application/x-ico", ".ico");
        maps.put("application/x-g4", ".ig4");
        maps.put("application/x-iphone", ".iii");
        maps.put("application/x-internet-signup", ".ins");
        maps.put("video/x-ivf", ".IVF");
        maps.put("image/jpeg", ".jfif");
        maps.put("application/x-jpe", ".jpe");
        maps.put("image/jpeg", ".jpg");
        maps.put("application/x-javascript", ".js");
        maps.put("audio/x-liquid-file", ".la1");
        maps.put("application/x-latex", ".latex");
        maps.put("application/x-lbm", ".lbm");
        maps.put("application/x-javascript", ".ls");
        maps.put("video/x-mpeg", ".m1v");
        maps.put("audio/mpegurl", ".m3u");
        maps.put("application/x-mac", ".mac");
        maps.put("text/xml", ".math");
        maps.put("application/x-mdb", ".mdb");
        maps.put("message/rfc822", ".mht");
        maps.put("application/x-mi", ".mi");
        maps.put("audio/mid", ".midi");
        maps.put("text/xml", ".mml");
        maps.put("audio/x-musicnet-stream", ".mns");
        maps.put("video/x-sgi-movie", ".movie");
        maps.put("audio/mp2", ".mp2");
        maps.put("audio/mp3", ".mp3");
        maps.put("video/x-mpg", ".mpa");
        maps.put("video/x-mpeg", ".mpe");
        maps.put("video/mpg", ".mpg");
        maps.put("application/vnd.ms-project", ".mpp");
        maps.put("application/vnd.ms-project", ".mpt");
        maps.put("video/mpeg", ".mpv2");
        maps.put("application/vnd.ms-project", ".mpx");
        maps.put("application/x-mmxp", ".mxp");
        maps.put("application/x-nrf", ".nrf");
        maps.put("text/x-ms-odc", ".odc");
        maps.put("application/pkcs10", ".p10");
        maps.put("application/x-pkcs7-certificates", ".p7b");
        maps.put("application/pkcs7-mime", ".p7m");
        maps.put("application/pkcs7-signature", ".p7s");
        maps.put("application/x-pci", ".pci");
        maps.put("application/x-pcx", ".pcx");
        maps.put("application/pdf", ".pdf");
        maps.put("application/x-pkcs12", ".pfx");
        maps.put("application/x-pic", ".pic");
        maps.put("application/x-perl", ".pl");
        maps.put("audio/scpls", ".pls");
        maps.put("image/png", ".png");
        maps.put("application/vnd.ms-powerpoint", ".pot");
        maps.put("application/x-ppm", ".ppm");
        maps.put("application/vnd.ms-powerpoint", ".ppt");
        maps.put("application/x-pr", ".pr");
        maps.put("application/x-prn", ".prn");
        maps.put("application/x-ps", ".ps");
        maps.put("application/x-ptn", ".ptn");
        maps.put("text/vnd.rn-realtext3d", ".r3t");
        maps.put("audio/x-pn-realaudio", ".ram");
        maps.put("application/rat-file", ".rat");
        maps.put("application/vnd.rn-recording", ".rec");
        maps.put("application/x-rgb", ".rgb");
        maps.put("application/vnd.rn-realsystem-rjt", ".rjt");
        maps.put("application/x-rle", ".rle");
        maps.put("application/vnd.adobe.rmf", ".rmf");
        maps.put("application/vnd.rn-realsystem-rmj", ".rmj");
        maps.put("application/vnd.rn-rn_music_package", ".rmp");
        maps.put("application/vnd.rn-realmedia-vbr", ".rmvb");
        maps.put("application/vnd.rn-realplayer", ".rnx");
        maps.put("audio/x-pn-realaudio-plugin", ".rpm");
        maps.put("text/vnd.rn-realtext", ".rt");
        maps.put("application/x-rtf", ".rtf");
        maps.put("application/x-sam", ".sam");
        maps.put("application/sdp", ".sdp");
        maps.put("application/x-stuffit", ".sit");
        maps.put("application/x-sld", ".sld");
        maps.put("application/smil", ".smi");
        maps.put("application/x-smk", ".smk");
        maps.put("text/plain", ".sol");
        maps.put("application/x-pkcs7-certificates", ".spc");
        maps.put("text/xml", ".spp");
        maps.put("application/vnd.ms-pki.certstore", ".sst");
        maps.put("text/html", ".stm");
        maps.put("text/xml", ".svg");
        maps.put("application/x-tdf", ".tdf");
        maps.put("application/x-tga", ".tga");
        maps.put("application/x-tif", ".tif");
        maps.put("text/xml", ".tld");
        maps.put("application/x-bittorrent", ".torrent");
        maps.put("text/plain", ".txt");
        maps.put("text/iuls", ".uls");
        maps.put("application/x-vda", ".vda");
        maps.put("text/xml", ".vml");
        maps.put("application/vnd.visio", ".vsd");
        maps.put("application/vnd.visio", ".vss");
        maps.put("application/x-vst", ".vst");
        maps.put("application/vnd.visio", ".vsx");
        maps.put("text/xml", ".vxml");
        maps.put("audio/x-ms-wax", ".wax");
        maps.put("application/x-wb2", ".wb2");
        maps.put("image/vnd.wap.wbmp", ".wbmp");
        maps.put("application/x-wk3", ".wk3");
        maps.put("application/x-wkq", ".wkq");
        maps.put("video/x-ms-wm", ".wm");
        maps.put("application/x-ms-wmd", ".wmd");
        maps.put("text/vnd.wap.wml", ".wml");
        maps.put("video/x-ms-wmx", ".wmx");
        maps.put("application/x-wp6", ".wp6");
        maps.put("application/x-wpg", ".wpg");
        maps.put("application/x-wq1", ".wq1");
        maps.put("application/x-wri", ".wri");
        maps.put("application/x-ws", ".ws");
        maps.put("text/scriptlet", ".wsc");
        maps.put("video/x-ms-wvx", ".wvx");
        maps.put("text/xml", ".xdr");
        maps.put("application/vnd.adobe.xfdf", ".xfdf");
        maps.put("application/vnd.ms-excel", ".xls");
        maps.put("application/x-xlw", ".xlw");
        maps.put("audio/scpls", ".xpl");
        maps.put("text/xml", ".xql");
        maps.put("text/xml", ".xsd");
        maps.put("text/xml", ".xslt");
        maps.put("application/x-x_b", ".x_b");
        maps.put("application/vnd.symbian.install", ".sisx");
        maps.put("application/vnd.iphone", ".ipa");
        maps.put("application/vnd.android.package-archive", ".apk");
        maps.put("application/x-silverlight-app", ".xap");
        maps.put("application/octet-stream", ".*");
        maps.put("application/x-001", ".001");
        maps.put("text/h323", ".323");
        maps.put("drawing/907", ".907");
        maps.put("audio/x-mei-aac", ".acp");
        maps.put("audio/aiff", ".aif");
        maps.put("audio/aiff", ".aiff");
        maps.put("text/asa", ".asa");
        maps.put("text/asp", ".asp");
        maps.put("audio/basic", ".au");
        maps.put("application/vnd.adobe.workflow", ".awf");
        maps.put("application/x-bmp", ".bmp");
        maps.put("application/x-c4t", ".c4t");
        maps.put("application/x-cals", ".cal");
        maps.put("application/x-netcdf", ".cdf");
        maps.put("application/x-cel", ".cel");
        maps.put("application/x-g4", ".cg4");
        maps.put("application/x-cit", ".cit");
        maps.put("text/xml", ".cml");
        maps.put("application/x-cmx", ".cmx");
        maps.put("application/pkix-crl", ".crl");
        maps.put("application/x-csi", ".csi");
        maps.put("application/x-cut", ".cut");
        maps.put("application/x-dbm", ".dbm");
        maps.put("text/xml", ".dcd");
        maps.put("application/x-x509-ca-cert", ".der");
        maps.put("application/x-dib", ".dib");
        maps.put("application/msword", ".doc");
        maps.put("application/x-drw", ".drw");
        maps.put("Model/vnd.dwf", ".dwf");
        maps.put("application/x-dwg", ".dwg");
        maps.put("application/x-dxf", ".dxf");
        maps.put("application/x-emf", ".emf");
        maps.put("text/xml", ".ent");
        maps.put("application/x-ps", ".eps");
        maps.put("application/x-ebx", ".etd");
        maps.put("image/fax", ".fax");
        maps.put("application/fractals", ".fif");
        maps.put("application/x-frm", ".frm");
        maps.put("application/x-gbr", ".gbr");
        maps.put("image/gif", ".gif");
        maps.put("application/x-gp4", ".gp4");
        maps.put("application/x-hmr", ".hmr");
        maps.put("application/x-hpl", ".hpl");
        maps.put("application/x-hrf", ".hrf");
        maps.put("text/x-component", ".htc");
        maps.put("text/html", ".html");
        maps.put("text/html", ".htx");
        maps.put("image/x-icon", ".ico");
        maps.put("application/x-iff", ".iff");
        maps.put("application/x-igs", ".igs");
        maps.put("application/x-img", ".img");
        maps.put("application/x-internet-signup", ".isp");
        maps.put("java/*", ".java");
        maps.put("image/jpeg", ".jpe");
        maps.put("image/jpeg", ".jpeg");
        maps.put("application/x-jpg", ".jpg");
        maps.put("text/html", ".jsp");
        maps.put("application/x-laplayer-reg", ".lar");
        maps.put("audio/x-liquid-secure", ".lavs");
        maps.put("audio/x-la-lms", ".lmsff");
        maps.put("application/x-ltr", ".ltr");
        maps.put("video/x-mpeg", ".m2v");
        maps.put("video/mpeg4", ".m4e");
        maps.put("application/x-troff-man", ".man");
        maps.put("application/msaccess", ".mdb");
        maps.put("application/x-shockwave-flash", ".mfp");
        maps.put("message/rfc822", ".mhtml");
        maps.put("audio/mid", ".mid");
        maps.put("application/x-mil", ".mil");
        maps.put("audio/x-musicnet-download", ".mnd");
        maps.put("application/x-javascript", ".mocha");
        maps.put("audio/mp1", ".mp1");
        maps.put("video/mpeg", ".mp2v");
        maps.put("video/mpeg4", ".mp4");
        maps.put("application/vnd.ms-project", ".mpd");
        maps.put("video/mpg", ".mpeg");
        maps.put("audio/rn-mpeg", ".mpga");
        maps.put("video/x-mpeg", ".mps");
        maps.put("video/mpg", ".mpv");
        maps.put("application/vnd.ms-project", ".mpw");
        maps.put("text/xml", ".mtx");
        maps.put("image/pnetvue", ".net");
        maps.put("message/rfc822", ".nws");
        maps.put("application/x-out", ".out");
        maps.put("application/x-pkcs12", ".p12");
        maps.put("application/pkcs7-mime", ".p7c");
        maps.put("application/x-pkcs7-certreqresp", ".p7r");
        maps.put("application/x-pc5", ".pc5");
        maps.put("application/x-pcl", ".pcl");
        maps.put("application/pdf", ".pdf");
        maps.put("application/vnd.adobe.pdx", ".pdx");
        maps.put("application/x-pgl", ".pgl");
        maps.put("application/vnd.ms-pki.pko", ".pko");
        maps.put("text/html", ".plg");
        maps.put("application/x-plt", ".plt");
        maps.put("application/x-png", ".png");
        maps.put("application/vnd.ms-powerpoint", ".ppa");
        maps.put("application/vnd.ms-powerpoint", ".pps");
        maps.put("application/x-ppt", ".ppt");
        maps.put("application/pics-rules", ".prf");
        maps.put("application/x-prt", ".prt");
        maps.put("application/postscript", ".ps");
        maps.put("application/vnd.ms-powerpoint", ".pwz");
        maps.put("audio/vnd.rn-realaudio", ".ra");
        maps.put("application/x-ras", ".ras");
        maps.put("text/xml", ".rdf");
        maps.put("application/x-red", ".red");
        maps.put("application/vnd.rn-realsystem-rjs", ".rjs");
        maps.put("application/x-rlc", ".rlc");
        maps.put("application/vnd.rn-realmedia", ".rm");
        maps.put("audio/mid", ".rmi");
        maps.put("audio/x-pn-realaudio", ".rmm");
        maps.put("application/vnd.rn-realmedia-secure", ".rms");
        maps.put("application/vnd.rn-realsystem-rmx", ".rmx");
        maps.put("image/vnd.rn-realpix", ".rp");
        maps.put("application/vnd.rn-rsml", ".rsml");
        maps.put("application/msword", ".rtf");
        maps.put("video/vnd.rn-realvideo", ".rv");
        maps.put("application/x-sat", ".sat");
        maps.put("application/x-sdw", ".sdw");
        maps.put("application/x-slb", ".slb");
        maps.put("drawing/x-slk", ".slk");
        maps.put("application/smil", ".smil");
        maps.put("audio/basic", ".snd");
        maps.put("text/plain", ".sor");
        maps.put("application/futuresplash", ".spl");
        maps.put("application/streamingmedia", ".ssm");
        maps.put("application/vnd.ms-pki.stl", ".stl");
        maps.put("application/x-sty", ".sty");
        maps.put("application/x-shockwave-flash", ".swf");
        maps.put("application/x-tg4", ".tg4");
        maps.put("image/tiff", ".tif");
        maps.put("image/tiff", ".tiff");
        maps.put("drawing/x-top", ".top");
        maps.put("text/xml", ".tsd");
        maps.put("application/x-icq", ".uin");
        maps.put("text/x-vcard", ".vcf");
        maps.put("application/vnd.visio", ".vdx");
        maps.put("application/x-vpeg005", ".vpg");
        maps.put("application/x-vsd", ".vsd");
        maps.put("application/vnd.visio", ".vst");
        maps.put("application/vnd.visio", ".vsw");
        maps.put("application/vnd.visio", ".vtx");
        maps.put("audio/wav", ".wav");
        maps.put("application/x-wb1", ".wb1");
        maps.put("application/x-wb3", ".wb3");
        maps.put("application/msword", ".wiz");
        maps.put("application/x-wk4", ".wk4");
        maps.put("application/x-wks", ".wks");
        maps.put("audio/x-ms-wma", ".wma");
        maps.put("application/x-wmf", ".wmf");
        maps.put("video/x-ms-wmv", ".wmv");
        maps.put("application/x-ms-wmz", ".wmz");
        maps.put("application/x-wpd", ".wpd");
        maps.put("application/vnd.ms-wpl", ".wpl");
        maps.put("application/x-wr1", ".wr1");
        maps.put("application/x-wrk", ".wrk");
        maps.put("application/x-ws", ".ws2");
        maps.put("text/xml", ".wsdl");
        maps.put("application/vnd.adobe.xdp", ".xdp");
        maps.put("application/vnd.adobe.xfd", ".xfd");
        maps.put("text/html", ".xhtml");
        maps.put("application/x-xls", ".xls");
        maps.put("text/xml", ".xml");
        maps.put("text/xml", ".xq");
        maps.put("text/xml", ".xquery");
        maps.put("text/xml", ".xsl");
        maps.put("application/x-xwd", ".xwd");
        maps.put("application/vnd.symbian.install", ".sis");
        maps.put("application/x-x_t", ".x_t");
        maps.put("application/vnd.android.package-archive", ".apk");
        maps.put("application/x-silverlight-app", ".xap");
    }
}
